package com.base;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author: sun.hongliang
 * @create: 2019/02/22 11:40
 */
public class ListsTest {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        list.add("a");
        list.add("b");
        List l = list.subList(0, 1);
        l.add("e");
        l.addAll(Arrays.asList("c", "d"));
        System.out.println(list);
    }
}
